﻿using System;
using System.Collections.Generic;

using WinRTFramework.FrameworkConfiguration;
using SeriesManager.ViewModel;

namespace SeriesManager.Framework
{
    class IoCAdapter : IIoCAdapter
    {
        public IEnumerable<Type> GetAllRegisteredTypes()
        {
            yield return typeof(ActorViewModel);
            yield return typeof(AirViewModel);
            yield return typeof(EpisodeViewModel);
            yield return typeof(MediaDetailViewModel);
            yield return typeof(MediaViewModel);
            yield return typeof(SearchViewModel);
            yield return typeof(SeasonViewModel);
            yield return typeof(SeriesViewModel);
            yield return typeof(SubscriptionViewModel);
            yield return typeof(SettingsViewModel);
        }

        public object GetInstanceOfType(Type t)
        {
            return Activator.CreateInstance(t);
        }
    }
}
